package pqt;

import java.awt.List;

public class Item {

	
	private String item;
	
	private List errores = new List();
	
	public Item(String item) {
		
		this.item = item;
	}
	
	
	public void setError(String error) {
		errores.add(error);
	}
	
	public String getError(int index) {
		
		return errores.getItem(index).toString();
	}
	
	public int getErrorSize() {
		
		return errores.getItemCount();
	}
	
	public String getItem()
	{
		return item;
	}
	
	
}
